//==============================================================================
//
// File: CBrowser.h
// Project: Browser
// Author(s): Matthias Van Eeghem (matthias@van-eeghem.com)
// License: See LICENSE in root directory
//
// The core class of the browser. This handles adding and removing of IPs, loading
// of the favorites when the application starts or starting the launcher with the
// correct parameters.
//
//==============================================================================

#ifndef BROWSER_H
#define BROWSER_H

#include "MainWindow.h"
#include <AtlBase.h>

class CBrowser
{
    // Reference to the MainWindow
    static MainWindow * m_pMainWindow;

    public:
    // Initialises the settings
    static void InitialiseSettings(MainWindow * parentWindow);
    // Launch the game
    static void LaunchGame(QString serverIP, QString serverPort, QString PlayerName);
    // Returns true if the specific process is running, false otherwise
    static bool IsProcessRunning(QString pName);

    private:
    // This method injects the mod (Client.dll) into the process
    static void InjectModIntoProcess(PROCESS_INFORMATION piLoadee);
};

#endif
